package doj;

import static org.junit.Assert.assertEquals;
import org.junit.Test;

/**
 * Tests to make sure distance is found correctly.
 * @author Jordan Do
 *
 */
public class TestPointDistance {
  
  DojBot tester = new DojBot();
  
  /**
   * Tests what won't be found by pythagorus.
   */
  @Test
  public void testPointDistance() {
    //same x plane
    assertEquals(tester.pointDistance(1, 2, 1, 5), 3, 0);
    //same y plane
    assertEquals(tester.pointDistance(2, 1, 6, 1), 4, 0);
    //anything else will be found by pythagorean theorem
  }
    
}